25
How can I determine if the giving input object is a file, folder (sample 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( _bstr_t(spThumbnail1->FormatABC(L"`The ` + fname + ` ` + ( ffolder = -1 ? `is a folder` : ( ffolder = +1 ? `is a file` : `is not found` ) ) + `.`",vtMissing,vtMissing,vtMissing,"C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg")) );
OutputDebugStringW( _bstr_t(spThumbnail1->FormatABC(L"`The ` + fname + ` ` + ( ffolder = -1 ? `is a folder` : ( ffolder = +1 ? `is a file` : `is not found` ) ) + `.`",vtMissing,vtMissing,vtMissing,"C:\\Program Files\\Exontrol\\ExThumbnail\\Sample")) );
OutputDebugStringW( _bstr_t(spThumbnail1->FormatABC(L"`The ` + ffile + ` ` + ( ffolder = -1 ? `is a folder` : ( ffolder = +1 ? `is a file` : `is not found` ) ) + `.`",vtMissing,vtMissing,vtMissing,"C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo2.jpg")) );

24
Is there any function to get automatically the size of the file in KB, MB or GB

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Size: <b>` + fsizeF");
spThumbnail1->EndUpdate();

23
How can I get the size of the file (GB)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Size: <b>` + ( (fsize/1024/1024/1024) format `` ) + ` GB(s)`");
spThumbnail1->EndUpdate();

22
How can I get the size of the file (MB)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Size: <b>` + ( (fsize/1024/1024) format `` ) + ` MB(s)`");
spThumbnail1->EndUpdate();

21
How can I get the size of the file (KB)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Size: <b>` + ( (fsize/1024) format `` ) + ` KB(s)`");
spThumbnail1->EndUpdate();

20
How can I get the size of the file (bytes)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Size: <b>` + fsize + ` byte(s)`");
spThumbnail1->EndUpdate();

19
How do I get the time the file was created, opened and modified

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutPadding(L"");
spThumbnail1->PutAlignment(EXTHUMBNAILLib::exAlignBottomCenter);
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(_bstr_t("`Created: <b><r>` + date(fcreated - bias/24/60) + `</b>` + `<br>` + `Modified: <b><r>` + date(fmodified - bias/24/60) + `</b>`+") +
" `<br>` + `Last Opened: <r><b>` + date(fopened - bias/24/60) + `</b>`");
spThumbnail1->PutSingleCaption(spThumbnail1->GetCaption());
spThumbnail1->EndUpdate();

18
How can I display the date/time the file/folder was last opened

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Opened: <b>` + date(fopened - bias/24/60)");
spThumbnail1->PutSingleCaption(spThumbnail1->GetCaption());
spThumbnail1->EndUpdate();

17
How can I display the date/time the file/folder was last modified

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Modified: <b>` + date(fmodified - bias/24/60)");
spThumbnail1->EndUpdate();

16
How can I display the date/time the file/folder was created

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Created: <b>` + longdate(date(fcreated - bias/24/60)) + ` ` + time(date(fcreated - bias/24/60))");
spThumbnail1->PutSingleCaption(spThumbnail1->GetCaption());
spThumbnail1->EndUpdate();

15
How can I get the alternate name of the file

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Alternate Name: <b>` + faname + `</b>, Name: <b>` + fname");
spThumbnail1->EndUpdate();

14
How can I get the file's extension

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Extension: <b>` + fext");
spThumbnail1->EndUpdate();

13
I've noticed the Caption property can use expressions, based on the file, the question is how can I use that feature without the Caption property

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( _bstr_t(spThumbnail1->FormatABC(L"ffile +` ` + ( len(fname) ? `this is a file/folder`: `not found`)",vtMissing,vtMissing,vtMissing,"C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg")) );

12
Can I determine if a file/thumbnail exists (sample 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->AddInputFiles("sss");
spThumbnail1->PutCaption(L"len(fname) ? `this is a file/folder` : `<fgcolor=FF0000><u>not found`");
spThumbnail1->EndUpdate();

11
How can I display the name of the file

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Name: <b>` + fname");
spThumbnail1->EndUpdate();

10
How can I display the full name of the file

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"ffile");
spThumbnail1->EndUpdate();

9
How can I display the index/number of files/thumbnails

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutCaption(L"(findex + 1) + ` of ` + fcount");
spThumbnail1->EndUpdate();

8
How can I add more files ( sample 3 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\device.png");

7
How can I add more files ( sample 2 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutInputFiles(_bstr_t("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg\\r\\nC:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\logo.png\\r\") +
"\nC:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\cordova.png");

6
How can I add more files ( sample 1 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutInputFile(_bstr_t("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg\\r\\nC:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\EndangeredAn") +
"imals.png");

5
How do I clear the control's content
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutInputFile(L"");

4
How can I add a file ( sample 3 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");

3
How can I add a file ( sample 2 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");

2
How can I add a file ( sample 1 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutInputFile(L"C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");

1
How do I change the control's background color
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'

	#import <ExThumbnail.dll>
	using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutBackColor(RGB(240,240,240));